<div class="list-group-item d-flex justify-content-between align-items-center">
    <div>
        <img src="{{$user->getAvatar()}}" alt="{{$user->name}}" width="40" class="img-thumbnail">
        <a href="{{route('users.show',$user)}}" class="text-decoration-none ml-1" >{{$user->name}}</a>
    </div>

    @can('destroy',$user)
        <form action="{{route('users.destroy',$user->id)}}" method="POST">
            @csrf
            @method('DELETE')
            <button class="btn btn-danger btn-sm">删除</button>
        </form>
    @endcan
</div>
